package com.btkjgc.models;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * RechargeRecordT entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "recharge_record_t")
@DynamicUpdate(true)
@DynamicInsert(true)
public class RechargeRecord implements java.io.Serializable {

	// Fields

	private Integer id;
	private Integer type;
	private Integer amount;
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date createdate;
	private Integer del;
	private Integer accountid;
	private String rechargePerson;
	private String tel;
	private Integer rechargeType;
	private Integer operid;
	private Integer siteid;
	private String serialNum;
	private String reason;
	private Integer rechargeWay;

	// Constructors

	// Property accessors
	@Id  
 	@Column(name="id",unique=true)  
    @GeneratedValue(strategy=GenerationType.AUTO)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getType() {
		return this.type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Integer getAmount() {
		return this.amount;
	}

	public void setAmount(Integer amount) {
		this.amount = amount;
	}

	public Date getCreatedate() {
		return this.createdate;
	}

	public void setCreatedate(Date createdate) {
		this.createdate = createdate;
	}

	public Integer getDel() {
		return this.del;
	}

	public void setDel(Integer del) {
		this.del = del;
	}

	public Integer getAccountid() {
		return this.accountid;
	}

	public void setAccountid(Integer accountid) {
		this.accountid = accountid;
	}

	public String getRechargePerson() {
		return this.rechargePerson;
	}

	public void setRechargePerson(String rechargePerson) {
		this.rechargePerson = rechargePerson;
	}

	public String getTel() {
		return this.tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public Integer getRechargeType() {
		return this.rechargeType;
	}

	public void setRechargeType(Integer rechargeType) {
		this.rechargeType = rechargeType;
	}

	public Integer getOperid() {
		return this.operid;
	}

	public void setOperid(Integer operid) {
		this.operid = operid;
	}

	public Integer getSiteid() {
		return this.siteid;
	}

	public void setSiteid(Integer siteid) {
		this.siteid = siteid;
	}

	public String getSerialNum() {
		return this.serialNum;
	}

	public void setSerialNum(String serialNum) {
		this.serialNum = serialNum;
	}

	public String getReason() {
		return reason;
	}

	public void setReason(String reason) {
		this.reason = reason;
	}

	public Integer getRechargeWay() {
		return rechargeWay;
	}

	public void setRechargeWay(Integer rechargeWay) {
		this.rechargeWay = rechargeWay;
	}

}